import { request } from '@/utils/request'
// 获取银行列表
export const getBankList = (data) => {
  return request({
    url: '/Wechat/Pay/getBankList',
    method: 'GET',
   data
  })
}
// 获取宝付协议
export const getBaofuAgree = (data) => {
  return request({
    url: '/Wechat/Pay/getBaofuAgree',
    method: 'GET',
    data
  })
}
// 获取银行协议
export const getBankAgree = (bank_id) => {
  return request({
    url: '/Wechat/Pay/getBankAgree',
    method: 'GET',
    data:{bank_id}
  })
}
// 预绑卡
export const readySign = (data) => {
  return request({
    url: '/Wechat/Pay/readySign',
    method: 'POST',
    data
  })
}
// 确认绑卡
export const confirmSign = (data) => {
  return request({
    url: '/Wechat/Pay/confirmSign',
    method: 'POST',
    data
  })
}
// 查询绑卡
export const queryBind = (data) => {
  return request({
    url: '/Wechat/Pay/queryBind',
    method: 'POST',
    data
  })
}
// 解除绑卡
export const aBolishBind = (data) => {
  return request({
    url: '/Wechat/Pay/aBolishBind',
    method: 'POST',
    data
  })
}
// 获取卡信息
export const getBankCard = (data) => {
  return request({
    url: '/Wechat/Pay/getBankCard',
    method: 'GET',
    data
  })
}